/**
 * File: SequenceMetaStore.java
 * Created by: mhaimel
 * Created on: Jun 10, 2010
 * CVS:  $Id: SequenceMetaStore.java 1.0 Jun 10, 2010 11:25:28 AM mhaimel Exp $
 */
package uk.ac.ebi.curtain.utils.data.store;

import java.io.File;
import java.util.Collection;
import java.util.Set;

/**
 * @author mhaimel
 *
 */
public interface SequenceMetaStore<T> {
	
	/**
	 * 
	 * @param id
	 * @param annotation
	 * @throws IllegalArgumentException if set id is already registered OR NO annotation was provided
	 */
	void createSet(Integer id, String ... annotation) throws IllegalArgumentException;
	
	/**
	 * Add related files (e.g. paired) in on transaction
	 * 
	 * @param id Set id number - needs to be registered before using {@link #createSet(Integer, String...)}
	 * @param dataSet 1..N URIs which point to a e.g. paired (file.FWD file.REV) set 
	 * 
	 * @throws IllegalArgumentException if set id is not registered or if the dataSet is empty
	 */
	void addEntry(Integer id, T ... dataSet) throws IllegalArgumentException;
	
	Set<Integer> getSetIds();
	
	String[] getAnnotation(Integer id);
	
	Collection<T[]> getEntries(Integer id);
	
	void load(File propertyFile);

}
